<?php
include "connect.php";

$reg=$_POST['reg'];
$roll=$_POST['roll'];
$sess=$_POST['sess'];
$dip=$_POST['dip'];
$class=$_POST['class'];
$year=$_POST['year'];

$dbquery="INSERT INTO student_academic (reg_no,roll_no,class_id,year_id,session_id,diploma_status) 
VALUES ('$reg','$roll','$class','$year','$sess','$dip')";

mysql_query($dbquery);
	
header("location:student_academic_success.php");
?>